﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CitiSurface
{
    public class MainBarDoc : IMainBarItem
    {
        public string Name { get; set; }
        public string ScreenshotSource { get; set; }
        public string Content { get; set; }

        public string NameExcerpt
        {
            get { return Name.Substring(0, 50) + "..."; }
        }

        public string ContentExcerpt
        {
            get { return Content.Substring(0, 150) + "..."; }
        }

        public MainBarDoc() {}

        public MainBarDoc(string name, string screenshotSource)
        {
            Name = name;
            ScreenshotSource = screenshotSource;
        }

        public object Clone()
        {
            return new MainBarDoc {Name = Name, Content = Content, ScreenshotSource = ScreenshotSource};
        }
    }
}
